home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / dialog / tabdlg3 / sample / tabdlg3.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-21  |  2.1 KB  |  45 lines

  1. ///////////////////////////////////////////////////////////////////////////
  2. // TabDlg Version 3.0
  3. // Copyright (c) 1994 Edward McCreary.
  4. // All rights reserved.
  5. //
  6. // Redistribution and use in source and binary forms are freely permitted
  7. // provided that the above copyright notice and attibution and date of work
  8. // and this paragraph are duplicated in all such forms.
  9. // THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
  10. // IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  11. // WARRANTIES OF MERCHANTIBILILTY AND FITNESS FOR A PARTICULAR PURPOSE.
  12. ///////////////////////////////////////////////////////////////////////////
  13. // File:    tabdlg3.h
  14. // Author:  Ed McCreary
  15. // Date:    11/7/94
  16. // Purpose: main header file for tabdlg3
  17. ///////////////////////////////////////////////////////////////////////////
  18. #ifndef _TABDLG3_H
  19. #define _TABDLG3_H
  20.  
  21. // tab styles
  22. #define TBS_SHADOW      0x0020               // add shadow to caption text
  23. // tab control messages
  24. #define TAB_ADDTAB       (WM_USER + 0)       // add tab to dialog box
  25.                                              // if wParam != 0, must be a template handle
  26.                                              // lParam is LPCSTR | HGLOBAL
  27.                                              
  28. #define TAB_DELETETAB    (WM_USER + 1)       // wParam is tab index
  29. #define TAB_FINDTAB      (WM_USER + 2)       // lParam is LPCSTR to tab caption
  30.                                              // returns tab index
  31.                                             
  32. #define TAB_GETCOUNT     (WM_USER + 3)       // returns number of tabs
  33. #define TAB_GETCURSEL    (WM_USER + 4)       // returns index of current tab
  34. #define TAB_SETCURSEL    (WM_USER + 5)       // sets wParam to current tab
  35.  
  36. #define TAB_GETTEXTLEN   (WM_USER + 6)       // get length of caption for tab wParam
  37. #define TAB_GETTEXT      (WM_USER + 7)       // get text of tab wParam into buffer lParam
  38.  
  39. // tab notification messages
  40. #define TABN_CHANGETAB   (WM_USER + 8)       // tab is switching
  41.  
  42. // classname
  43. #define TAB_CLASSNAME   "TabDlg"
  44.  
  45. #endif /* _TABDLG3_H */